package cn.zkrt.iotms.module.iot.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author: xulinyu
 * date:  2024/10/16 14:48
 */
@Data
public class BindingDeviceVO {

    @ApiModelProperty("根节点ID")
    private String rootId;

    @ApiModelProperty("设备集合")
    private List<BindingDevice> devices;

    @ApiModelProperty("节点关系集合")
    private List<DeviceRelationVO> relations;


    @Data
    public static class BindingDevice{
        @ApiModelProperty("设备ID")
        private String id;

        @ApiModelProperty("父节点ID")
        private String parentId;

        private String deviceTypeId;

        @ApiModelProperty("设备类型标识符")
        private String deviceTypeKey;

        @ApiModelProperty("设备类型名称")
        private String deviceTypeName;

        @ApiModelProperty("设备类型名称")
        private String deviceName;
    }

    @Data
    public static class DeviceRelationVO{

        @ApiModelProperty("父节点ID")
        private String fromId;

        @ApiModelProperty("子节点ID")
        private String toId;
    }
}
